PrValidate
on your print record to ensure that the contents of
your print record are compatible with the current active printer driver.PrStlDialog
so they can
set the orientation.PrValidate
again to ensure that the user did change to
landscape mode. If the paper rectangle is still taller than wide, go
back to step 2 and ask the user to set the orientation again because they
did not follow or did not understand the instructions in step 2.PrStlDialog
*once*. Thereafter, the print record is restored from
preferences when printing needs to occur.PrValidate
will fail, and PrDefault
must be called.
This will make a new
print record for the new printer driver, and it will default to portrait mode
(not landscape mode), so, go back to step 2.
Note: |